class User {
  final String nickname;
  final int id;

  User({required this.nickname, required this.id});

  factory User.fromJson(Map<String, dynamic> json) {
    return User(
      nickname: json['nickname'],
      id: json['id'],
    );
  }
}
